<template>
    <div>
        <Header :title="'技能证书'" :right_text1="'保存'"></Header>
        <div class="topheader page">
            <div class="tip"></div>
            <van-cell-group inset class="textarea infofield">
                <van-field v-model="name" rows="1" autosize type="textarea" maxlength="20" placeholder="请输入" show-word-limit/>
            </van-cell-group>
        </div>
    </div>
</template>

<script>
import Header from '@/components/header.vue'
import { Toast } from 'vant';
export default {
    components: {
        Header
    },
    data() {
        return {
            name: '',
            skillInfoList: this.$store.state.skillInfoList
        }
    },
    mounted() {
        this.name = this.skillInfoList.certificateName;

    },
    methods: {
        rightMethod() {
            this.skillInfoList.certificateName = this.name;
            this.$store.commit('setskillInfoList', this.skillInfoList);
            this.$router.replace('/certificate')
        },
        goback(){
            this.$router.replace('/certificate')
        }
    }
}
</script>

<style scoped>
.tip {
    height: 0.32rem;
}

.textarea .van-cell {
    padding: unset;
}

.van-cell-group--inset.textarea {
    margin: unset;
}
</style>